*** empty log message ***
authorlukka <lukka@src.gnome.org>
Wed, 18 Nov 1998 00:57:16 +0000 (00:57 +0000)
committerlukka <lukka@src.gnome.org>
Wed, 18 Nov 1998 00:57:16 +0000 (00:57 +0000)
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktypeutils.c

index a3c1835e77fc784a6f1637a7b35b536f497d6dbc..00f2f41a33feec4f151cf4942bdc81515494a409 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue Nov 17 1998  Tuomas Lukka <lukka@iki.fi>
+
+       * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when
+         getting types even though we were not using real type names,
+         just the index.  This caused random crashes when more than 
+         256 types were defined.
+
 1998-11-17  Martin Baulig  <martin@home-of-linux.org>
 
        * gtk/genmarshal.pl: Put output files in the current directory
index a3c1835e77fc784a6f1637a7b35b536f497d6dbc..00f2f41a33feec4f151cf4942bdc81515494a409 100644 (file)
@@ -1,3 +1,10 @@
+Tue Nov 17 1998  Tuomas Lukka <lukka@iki.fi>
+
+       * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when
+         getting types even though we were not using real type names,
+         just the index.  This caused random crashes when more than 
+         256 types were defined.
+
 1998-11-17  Martin Baulig  <martin@home-of-linux.org>
 
        * gtk/genmarshal.pl: Put output files in the current directory
index a3c1835e77fc784a6f1637a7b35b536f497d6dbc..00f2f41a33feec4f151cf4942bdc81515494a409 100644 (file)
@@ -1,3 +1,10 @@
+Tue Nov 17 1998  Tuomas Lukka <lukka@iki.fi>
+
+       * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when
+         getting types even though we were not using real type names,
+         just the index.  This caused random crashes when more than 
+         256 types were defined.
+
 1998-11-17  Martin Baulig  <martin@home-of-linux.org>
 
        * gtk/genmarshal.pl: Put output files in the current directory
index a3c1835e77fc784a6f1637a7b35b536f497d6dbc..00f2f41a33feec4f151cf4942bdc81515494a409 100644 (file)
@@ -1,3 +1,10 @@
+Tue Nov 17 1998  Tuomas Lukka <lukka@iki.fi>
+
+       * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when
+         getting types even though we were not using real type names,
+         just the index.  This caused random crashes when more than 
+         256 types were defined.
+
 1998-11-17  Martin Baulig  <martin@home-of-linux.org>
 
        * gtk/genmarshal.pl: Put output files in the current directory
index a3c1835e77fc784a6f1637a7b35b536f497d6dbc..00f2f41a33feec4f151cf4942bdc81515494a409 100644 (file)
@@ -1,3 +1,10 @@
+Tue Nov 17 1998  Tuomas Lukka <lukka@iki.fi>
+
+       * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when
+         getting types even though we were not using real type names,
+         just the index.  This caused random crashes when more than 
+         256 types were defined.
+
 1998-11-17  Martin Baulig  <martin@home-of-linux.org>
 
        * gtk/genmarshal.pl: Put output files in the current directory
index a3c1835e77fc784a6f1637a7b35b536f497d6dbc..00f2f41a33feec4f151cf4942bdc81515494a409 100644 (file)
@@ -1,3 +1,10 @@
+Tue Nov 17 1998  Tuomas Lukka <lukka@iki.fi>
+
+       * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when
+         getting types even though we were not using real type names,
+         just the index.  This caused random crashes when more than 
+         256 types were defined.
+
 1998-11-17  Martin Baulig  <martin@home-of-linux.org>
 
        * gtk/genmarshal.pl: Put output files in the current directory
index a3c1835e77fc784a6f1637a7b35b536f497d6dbc..00f2f41a33feec4f151cf4942bdc81515494a409 100644 (file)
@@ -1,3 +1,10 @@
+Tue Nov 17 1998  Tuomas Lukka <lukka@iki.fi>
+
+       * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when
+         getting types even though we were not using real type names,
+         just the index.  This caused random crashes when more than 
+         256 types were defined.
+
 1998-11-17  Martin Baulig  <martin@home-of-linux.org>
 
        * gtk/genmarshal.pl: Put output files in the current directory
index 165a8d08ca15e04bf9980349ed5ffd5fa1471a56..27c20eb5e1321afacc3774188331f3d829105c0f 100644 (file)
@@ -96,7 +96,15 @@ gtk_type_node_next_and_invalidate (void)
   new_type = n_type_nodes++;
   n_free_type_nodes--;
   
-  LOOKUP_TYPE_NODE (node, new_type);
+  /* This can't be used here - new_type can be over 256!
+   * LOOKUP_TYPE_NODE (node, new_type);
+   * Code copied from above (we may assume we are all right here):
+   */
+
+  if(new_type == 0) 
+    return NULL;
+  node = type_nodes + new_type;
+
   if (node)
     node->type = new_type;